package com.kate.mall.order.feign;

import com.kate.mall.common.utils.R;
import com.kate.mall.order.dto.WxUserFormidDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/11/4 10:09
 */
@FeignClient("member-center")
public interface MemberFeignClient {
    @GetMapping("/user/address/info/{id}")
    R queryAddressById(@PathVariable("id") Integer addressId) ;

    @GetMapping("/user/address/info/{id}")
    R findById(Integer userId);

    @GetMapping("/user/member/info/{id}")
    R findMemberById(@PathVariable("id") Integer userId);

    @PostMapping("/user/memberformid/save")
    R saveWxUserFormId(@RequestBody WxUserFormidDTO wxUserFormidDTO);
    //@GetMapping("/user/member/info/{id}")
    //R getUserById(@PathVariable("id") Integer useId);
    //
    //@PostMapping("user/memberformid/save")
    //R formIdSave(@RequestBody UserFormIdDto userFormIdDto);
}
